package com.azdebugit.clone.copy.cp.constructors;

public class ShallowCar {
    Wheel wheel;
    String manufacturer;

    public ShallowCar(Wheel wheel, String manufacturer) {
        this.wheel = wheel;
        this.manufacturer = manufacturer;
    }

    //浅拷贝copy constructor
    public ShallowCar(ShallowCar car) {
        this(car.wheel, car.manufacturer);
    }

    public static class Wheel {
        String brand;
    }
}